<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<h:form id="conventionDialogForm">
		<p:dialog id="conventionDialog" widgetVar="conventionDialog" rendered="#{identity.loggedIn}" visible="false" showEffect="clip" hideEffect="clip" modal="true">
			<ui:include src="conventionDialog/idContent.xhtml" />
			
			<f:facet name="footer">
				<p:separator />
				<p:commandButton value="Okay" actionListener="#{conventionBean.onSaveAction}" oncomplete="conventionDialog.hide()" update=":toolbarForm:globalMessages, :conventionsView"/>
				<p:commandButton value="Cancel" oncomplete="conventionDialog.hide()" update=":toolbarForm:globalMessages"/>
			</f:facet>
		</p:dialog>
	</h:form>
</ui:composition>